package com.zlt.bkparking.service;

import com.zlt.bkparking.dto.BackUserDto;
import com.zlt.bkparking.dto.RegisterDto;
import com.zlt.bkparking.dto.LoginDto;
import com.zlt.bkparking.entity.BackUser;
import com.zlt.bkparking.vo.PermissionVo;
import com.zlt.bkparking.vo.RoleVo;

import java.util.List;

public interface BackUserService {
    String login(LoginDto loginDto);
    BackUser selectUserByUsername(String username);
    String addBackUserByDto(RegisterDto registerDto);

    boolean setBackUserDto(BackUserDto backUserDto);

    boolean setStateByUsername(String username);

    List<RoleVo> selectRolesVoByBuId(Long buId);

    List<PermissionVo> selectPermissionVoByRoles(List<RoleVo> roleVOS);

    List<PermissionVo> selectPermissionVoByRid(Integer rid);
}
